package com.kdtech.entity.data;

import com.kdtech.utils.DateUtils;

/**
 * 博客实体类
 *
 * @author Persh
 *
 */
public class BlogMeta extends AbstractMeta {
	
	/**
	 * 评论数
	 */
	private Integer commentNum=0;
	/**
	 * 点击数
	 */
	private Integer clickNum=0;
	/**
	 * 转发数
	 */
	private Integer deliverNum=0;

	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}
	public Integer getDeliverNum() {
		return deliverNum;
	}
	public void setDeliverNum(Integer deliverNum) {
		this.deliverNum = deliverNum;
	}


	@Override
	public String toString() {
		String strRet="";
		strRet+="url:"+this.getUrl()+"\r\n";
		strRet+="updateUrl:" + this.getUpdateUrl()+"\r\n";
		strRet+="title:" + this.getTitle()+"\r\n";
		strRet+="author:" + this.getAuthor()+"\r\n";
		strRet+="date:"+(this.getDate()==null?"":DateUtils.format(this.getDate(), "yyyy-MM-dd HH:mm"))+"\r\n";
		strRet+="content:" + getContent()+"\r\n";
		strRet+="commentNum:" +commentNum+"\r\n";
		strRet+="clickNum:" + clickNum+"\r\n";
		strRet+="deliverNum:" + deliverNum+"\r\n";
		return strRet;
	}

}
